<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <!-- <button v-on:click="change">
            {{isShow?'切换美女':'切换帅哥'}}
        </button> -->
        <button @click="change">
            {{isShow?'切换美女':'切换帅哥'}}
        </button>
        <br/>
        <img :src="isShow?'https://img.tupianzj.com/uploads/210111/37-2101110Z15L17.jpg':'https://img.tupianzj.com/uploads/allimg/202005/9999/rn1facb74767.jpg'" alt="">
    </div>
    <script src="./vue.js"></script>
    <script>
       
        const vm = new Vue({
            el:"#app",
            data:{ 
                isShow:true
            },
            methods:{
                change(){
                    console.log(this)
                    this.isShow = !this.isShow
                }
            }
            
        })
    
       
    </script>
</body>
</html>